<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<p:panel>
		<p:outputPanel id="pnlImagemDetalhes">
			<div class="row-fluid">
				<div class="span12">
					<p:graphicImage id="imgExibir" styleClass="img_detalhe"
						value="/temp/#{produtoMB.fotoExibir.descricao}.jpg"></p:graphicImage>
				</div>

			</div>

			<div class="row-fluid">

				<ui:repeat var="f" value="#{produtoMB.fotos}">
					<p:commandLink update=":pnlImagemDetalhes">
						<f:setPropertyActionListener target="#{produtoMB.fotoExibir}"
							value="#{f}" />
						<h:graphicImage id="img_#{f.descricao}" width="62" height="62"
							value="/temp/#{f.descricao}.jpg" />
					</p:commandLink>
				</ui:repeat>

			</div>
		</p:outputPanel>
	</p:panel>

</ui:fragment>
